package com.yy.QSManage.service.other.scheduler;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

@Data
@Accessors(chain = true)
public class TaskScheduler {

    private String jobName;

    private String jobGroupName;

    private String state;

    private String jobClass;

    private String intervalUnit;

    private String intervalUnitName;

    private Integer timeInterval;

    private String cronExpression;

    /**
     * 持久化
     */
    private Boolean isDurable;

    /**
     * 失败重试
     */
    private Boolean requestRecovery;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh",timezone = "GMT+8")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh",timezone = "GMT+8")
    private Date endTime;

    private String description;
}